HID: apple: Add missing scan code event for keys handled by hid-apple
authorVincent Lefevre <vincent@vinc17.net>
Thu, 22 Jul 2021 01:25:44 +0000 (03:25 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 3 Oct 2021 20:14:52 +0000 (21:14 +0100)
commit96695082f7a3665cb5456ad1c6cde88f0991240e
tree22738625cb8b849807d699824f04aa9629454fe9
parent82c65447ee1fe2b30f85cf4154e8af3a1c6bba71
HID: apple: Add missing scan code event for keys handled by hid-apple

Origin: https://git.kernel.org/linus/3b41fb4094914903fd8e50a13def9e47763dc101
Bug-Debian: https://bugs.debian.org/757356

When an EV_KEY event is generated by hid-apple due to special key
mapping, the usual associated scan code event (EV_MSC) is missing.
This issue can be seen with the evtest utility.

Add the scan code event for these special keys.

BugLink: https://bugs.debian.org/757356
Co-developed-by: Daniel Lin <ephemient@gmail.com>
Signed-off-by: Daniel Lin <ephemient@gmail.com>
Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name HID-apple-Add-missing-scan-code-event-for-keys-handl.patch
drivers/hid/hid-apple.c